package com.project.thisDatabase.base.mapper;

import com.project.thisDatabase.base.model.EntityBase;
import com.project.thisDatabase.base.model.entities.IntResultEntity;
import com.project.thisDatabase.base.model.entities.PageEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseViewMapper<T extends EntityBase> extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T> {

    List<T> search(T entity);
    List<T> searchPage(@Param("entityItem") T entityItem, @Param("pageItem") PageEntity pageItem);
    IntResultEntity count(T entity);

    List<T> searchAut(T entity);
    List<T> searchPageAut(@Param("entityItem") T entityItem, @Param("pageItem") PageEntity pageItem);
    IntResultEntity countAut(T entity);

}
